import Vue from 'vue'
import App from './App.vue'
import router from './router/index.js'
import './assets/font/iconfont.css'
import './utils/rem.js'  //做rem适配
import './assets/css/reset.css'
import './assets/css/base.css'
import store from './store/index.js'

//引入vant组件库
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

// 组件全局注册
import JobItem from './components/JobItem'

// import 'windi.css'
Vue.component('job-item',JobItem)

Vue.config.productionTip = false

// 尝试提取本地存储用户信息
let info = localStorage.getItem('userInfo')
if(info){
  store.commit('user/initUserInfoMut',JSON.parse(info))
}

new Vue({
  render: h => h(App),
  router, //路由注入
  store  //注入状态机
}).$mount('#app')
